package com.bw.wxy.common;

import android.app.Application;
import android.content.Context;

import androidx.multidex.MultiDexApplication;

import com.blankj.utilcode.util.LogUtils;
import com.bw.wxy.db.UserManager;
//import com.umeng.commonsdk.statistics.common.DeviceConfig;

public class App extends MultiDexApplication {
    private static App instance;

    public static App getInstance(){
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance=this;
        UserManager.getInstance().init(this);

//        LogUtils.json(getTestDeviceInfo(this));
    }


//    public static String[] getTestDeviceInfo(Context context){
//        String[] deviceInfo = new String[2];
//        try {
//            if(context != null){
//                deviceInfo[0] = DeviceConfig.getDeviceIdForGeneral(context);
//                deviceInfo[1] = DeviceConfig.getMac(context);
//            }
//        } catch (Exception e){
//        }
//        return deviceInfo;
//    }
}

